Add Emoji support for Image + Fix issues in component generation #399
Merged
brionmario merged 11 commits intoasgardeo:mainfrom Mar 15, 2026
Merged
Add Emoji support for Image + Fix issues in component generation #399brionmario merged 11 commits intoasgardeo:mainfrom
brionmario merged 11 commits intoasgardeo:mainfrom
Conversation
…etter presentation
…eFlowTemplateLiterals` and update related interfaces and utility functions
…in HTML before sanitization
…mic text alignment and margin styling
29deb0d to
455296d
Compare
🦋 Changeset detectedThe changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. |
ThaminduDilshan
approved these changes
Mar 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces several new utility functions and refactors existing code to improve support for flow template literals and emoji URIs in the JavaScript SDK. The main changes include the addition of new helpers for detecting and extracting emoji URIs, enhanced parsing and resolution of flow template literals (such as
{{ t(key) }}and{{ meta(path) }}), and updates to the ReactImageComponentto render emoji URIs as scalable emoji icons. The exports and type names have also been updated for clarity and consistency.The most important changes are:
Flow Template Literal Support
parseFlowTemplateLiteral,isMetaFlowTemplateLiteral,isTranslationFlowTemplateLiteral, andcontainsMetaFlowTemplateLiteral, enabling robust detection and extraction of translation and metadata expressions within strings. [1] [2] [3] [4]resolveVarswithresolveFlowTemplateLiterals, updated its implementation to use the new parsing utilities, and renamed related types for clarity. [1] [2] [3] [4] [5]Emoji URI Handling
isEmojiUriandextractEmojiFromUrihelpers to identify and extract emoji characters from URIs with theemoji:scheme. [1] [2] [3]React Component Enhancement
ImageComponentin React to support rendering emoji URIs as scalable emoji icons using the new emoji utilities, improving visual consistency and accessibility for emoji-based images. [1] [2]Codebase Organization and Exports
index.tsto expose the new utilities and renamed types, ensuring that consumers of the SDK have access to the latest helpers. [1] [2]These changes collectively improve the SDK's flexibility in handling dynamic content and enhance support for both internationalization and emoji-based UI elements.
Related Issues
gstaticrandom logo generator with in-app emoji/icon picker for all resource avatars/logos (app, OU, user, etc.) thunder#1803Related PRs
Checklist
Security checks